package com.prs.crm.domain.oa;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;

import com.prs.crm.domain.Attachment;
import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.hr.Person;

/**
 * 短消息收藏
 * @author miccn
 *
 */
@Entity
@Table(name="oa_notice_collect")
public class NoticeCollect extends BaseEntity {
private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@OneToOne
	private Notice notice;
	@OneToOne
	private NoticeAccept noticeAccept;
	@ManyToOne
	private NoticeCollectType type;  //通知类别
	
	public NoticeAccept getNoticeAccept() {
		return noticeAccept;
	}
	public void setNoticeAccept(NoticeAccept noticeAccept) {
		this.noticeAccept = noticeAccept;
	}
	public Notice getNotice() {
		return notice;
	}
	public void setNotice(Notice notice) {
		this.notice = notice;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public NoticeCollectType getType() {
		return type;
	}
	public void setType(NoticeCollectType type) {
		this.type = type;
	}
	
}
